<?php
namespace app\manage\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class Menu extends Validate
{
    //定义验证规则
    protected $rule = [
        'title|节点名称'  => 'require',
        'pid|上级节点'  => 'require',
    ];
    protected $scene = [
        'add'   =>  ['title','pid'],
    ];
}
